//
//  PayMoneyDetailInfoOtherTableViewCell.m
//  PropertyManager
//
//  Created by TNG on 2018/7/16.
//  Copyright © 2018年 Tng. All rights reserved.
//

#import "PayMoneyDetailInfoOtherTableViewCell.h"

@implementation PayMoneyDetailInfoOtherTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self creatUI];
        self.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return self;
}

-(void)creatUI{
    [self.contentView addSubview:self.titlelLabel];
    [self.contentView addSubview:self.detailLabel];
}

-(UILabel *)titlelLabel
{
    if (_titlelLabel == nil) {
        _titlelLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 15, 100, 25)];
        _titlelLabel.font = font(16);
        _titlelLabel.textColor = SFM51;
        _titlelLabel.textAlignment = NSTextAlignmentLeft;
    }
    return _titlelLabel;
}

-(UILabel *)detailLabel
{
    if (_detailLabel == nil) {
        _detailLabel = [[UILabel alloc] initWithFrame:CGRectMake(137, 15, WIDTH - 155, 25)];
        _detailLabel.font = font(16);
        _detailLabel.textColor = SFM153;
        _detailLabel.textAlignment = NSTextAlignmentLeft;
    }
    return _detailLabel;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
